package com.wt.service;

import com.wt.pojo.WithdrawOrder;
import com.wt.util.Pager;
import com.wt.util.Pagination;

import java.math.BigDecimal;

/**
 * Author hiberk
 * Date 2017/6/29 14:38
 */
public interface WithDrawService {
    Pagination<WithdrawOrder> selectWithDrawOrders(Integer id, Long timeStart, Long timeEnd, Pager pager);
    /**
     * 成交总金额
     * @param id
     * @return
     */
    BigDecimal selectTradeTotal(Integer id);
    boolean saveWithdrawOrder(WithdrawOrder order);
    boolean selectCheckStatus(Integer id);

    /**
     * 账面总金额
     * @param id
     * @return
     */
    BigDecimal selectAccountTotal(Integer id);

    /**
     * 所有分销商的数据
     * @return
     */
    BigDecimal selectAccountAll();

    /**
     * 所有分销商的交易额
     * @return
     */
    BigDecimal selectTradeAll();

    BigDecimal selectTradeCommission();

    Long selectCountOrders();
}
